package com.controller;


import com.common.utils.Result;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@CrossOrigin(allowCredentials = "true", allowedHeaders = "*")
@RestController
@RequestMapping("/demo")
public class DemoController {

    @RequestMapping("/hello")
    public Result getHello(){
        return  Result.success("hello");
    }
}


